Technote Number: 1097282
Problem:
This issue was reported to Lotus Quality Engineering and has been address in
Domino 5.0.8.
Excerpt from the Lotus Notes and Domino Release 5.0.8 MR fix list (available at
http://www.notes.net):
Web Server - Fields
SPR# ANEN4N3C37 - Fixed the problem of empty Rich Text Fields not being saved
in a document when created on the web. This regression was introduced in 5.0.
The following workaround is available for versions prior to 5.0.8:
Note: It is not desirable to simply add the text to the 'Default Value' formula
for the Rich Text field. On a browser, the 'Default Value' formula is
triggered in the back-end and the field will be created with the a Type of Text.
If you want to add text to the field in the WebQueryOpen agent, you can add a
check to see whether a Rich Text field exists or not. If the field does not
exist it is created:
Dim rtitem As Variant
Set doc = session.DocumentContext
Set rtitem=doc.getfirstitem("RichText")
If rtitem Is Nothing Then
Dim newrtitem As New notesrichtextitem(doc, "RichText")
Set rtitem=newrtitem
End If
Call rtitem.appendtext("Sample Text")
During the WebQuerySave agent, if you want to be sure a Rich Text field has
been created, the following logic can be used. If the user has not entered any
text, then a space is appended to the field, which forces the creation of the
field:
Dim rtitem As Variant
Set doc = session.DocumentContext
Set rtitem=doc.getfirstitem("RichText")
If rtitem Is Nothing Then
Dim newrtitem As New notesrichtextitem(doc, "RichText")
Call newrtitem.appendtext(" ")
End If
Supporting Information:
Related Documents:
Documents Created From Browser Contain Computed Rich Text Fields of the Type
Text
Document #: 190139 More >
|  |
|
|
|
|